package com.example.demo.service.exception;

/**
 * @Package com.gsunis.epay.service.exception
 * @Description: TODO ( 错误编码 )
 * @Author rxbyes
 * @Date 2017 上午8:47
 * @Version V1.0
 */
public enum ErrorCode {

    BAD_REQUEST(3,  "请求异常"),
    SYSTEM_ERROR(3,  "系统异常"),
    FORBIDDEN(403,  "转发异常"),
    NULL_ERROR(1,  "数据为空异常"),
    PASSWORD_ERROR(1,  "账号或密码错误");

    /**
     * 系统错误码
     */
    public int code;

    /**
     * 程序错误信息
     */
    public String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
